package com.fp.m7.client.widget;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.ScrollPanel;

/**
 * Vertical panel with a scrollbar. Usually for displaying a list of users.
 * 
 * @author 7
 */
public class UserListContainerWidget extends Composite {

    private VerticalPanelWithEmptyView verticalPanel;

    public UserListContainerWidget() {
        ScrollPanel scrollPanel = new ScrollPanel();
        initWidget(scrollPanel);

        verticalPanel = new VerticalPanelWithEmptyView();
        scrollPanel.setWidget(verticalPanel);
        verticalPanel.setSize("100%", "100%");
    }

    public VerticalPanelWithEmptyView getContentPanel() {
        return verticalPanel;
    }

}
